<?php
require_once 'db_conn2.php';

$username = $_POST['name'];
$sex = $_POST['sex'];
$whereword = $_POST['whereword'];
$birthday = $_POST['birthday'];
$wordday = $_POST['wordday'];

$sql ="
    INSERT INTO `huangjianrui`.`index` (
    `name` ,
    `sex` ,
    `whereword` ,
    `birthday`  ,
    `wordday`
)
VALUES (
 '$name', '$sex', '$whereword', '$birthday','$wordday'
);
";

$result = $conn->query($sql);
header("location:index2.php");
?>
      